#!/bin/bash
cd ../result
mypath=`pwd`
cd ../VK-GL-CTS
pushd build/external/openglcts/modules
rm -rf cts-result*
rm -rf ./TestResults.qpa
./glcts --deqp-caselist-file=./gl_cts/data/mustpass/gl/khronos_mustpass/4.6.0.x/gl33-all-pass.txt > $mypath/cts.log
popd

cd $mypath
echo "============CTS RESULTS=============" >> TestResult.log
awk '{if($0~"Passed:")print}' cts.log >> TestResult.log
awk '{if($0~"Failed:")print}' cts.log >> TestResult.log
awk '{if($0~"Not supported:")print}' cts.log >> TestResult.log
awk '{if($0~"Warnings:")print}' cts.log >> TestResult.log
